<?php

namespace Rebecca\RebeccaBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

class CalendariosType extends AbstractType
{
    public function buildForm(FormBuilder $builder, array $options)
    {
        $builder
            ->add('nombre')
            ->add('idLimiteCalendario', 'entity', array('class' => 'RebeccaBundle:LimitesCalendarios', 'property' => 'nombre', 'label' => 'Limite'))
            ->add('activa')
            ->add('fechas', 'textarea', array('attr' => array('class' => 'multidatepicker xxlarge')))
        ;
    }

    public function getName()
    {
        return 'rebecca_rebeccabundle_calendariostype';
    }
}
